import { createWebHistory, createRouter, Router } from 'vue-router';

const routes = [
  { path: '/', component: () => import('@/views/Home/index.vue') },
  { path: '/detail', component: () => import('@/views/Detail/index.vue') },
  { path: '/search', component: () => import('@/views/Search/index.vue') }
];

const router: Router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;
